using System;

namespace Graffiti.Core
{
    /// <summary>
    /// Summary description for Tag
    /// </summary>
    [Serializable]
    public class Tag
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public int PostId { get; set; }
        
        public static void WritePage(string name)
        {
            PageTemplateToolboxContext templateContext = new PageTemplateToolboxContext();
            templateContext.Put("tag", name);
            templateContext.Put("MetaDescription", "Posts and articles tagged as " + name);
            templateContext.Put("MetaKeywords", name);

			PageWriter.Write("tag.view", "~/tags/" + name + "/" + Util.DEFAULT_PAGE, templateContext);
            PageWriter.Write("tagrss.view", "~/tags/" + name + "/feed/" + Util.DEFAULT_PAGE, templateContext);            
        }
    }



}